package com.xyz.entity.mapper;

import com.xyz.entity.pojo.EquipmentTree;
import com.xyz.entity.pojo.EquipmentTreeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface EquipmentTreeMapper {
    long countByExample(EquipmentTreeExample example);

    int deleteByExample(EquipmentTreeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EquipmentTree record);

    int insertSelective(EquipmentTree record);

    List<EquipmentTree> selectByExample(EquipmentTreeExample example);

    EquipmentTree selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EquipmentTree record, @Param("example") EquipmentTreeExample example);

    int updateByExample(@Param("record") EquipmentTree record, @Param("example") EquipmentTreeExample example);

    int updateByPrimaryKeySelective(EquipmentTree record);

    int updateByPrimaryKey(EquipmentTree record);

    @Select("select name , base_id as baseId from equipment_tree where id = #{id} ")
    EquipmentTree treeName(@Param("id") Long id);
}